package edu.hitsz.factory.aircraft;

import edu.hitsz.aircraft.AbstractAircraft;
import edu.hitsz.aircraft.BossAircraft;
import edu.hitsz.application.ImageManager;
import edu.hitsz.application.Main;

/**
 * BOSS工厂
 * @author HMount
 */
public class BossAircraftFactory implements AircraftFactory{
    @Override
    public AbstractAircraft createAircraft(int hp) {
        return new BossAircraft(
                (int) (Math.random() * (Main.WINDOW_WIDTH - ImageManager.MOB_ENEMY_IMAGE.getWidth())) * 1,
                (int) (Math.random() * Main.WINDOW_HEIGHT * 0.2) * 1,
                5,
                0,
                hp);
    }
}
